﻿using System;

namespace SumFraction
{
    class Program
    {
        static void Main(string[] args)
        {
            double i = 1, s = 1;

            while (i <= 99)

            {
                s = s + i / (i + 1);

                i++;

            }

            Console.WriteLine("1+1/2+2/3+3/4+…+99/100之和为{0}", s);
            Console.ReadKey();
        }
    }
}
